/**
 *
 */
package name.yzhu.wbdata.db.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yhzhu
 *
 */
public class User implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = -6218046454523974943L;

	private Long uid;

	private String name;

	private String password;
	
	private Date regTime;

	private Date lastVisitTime;

	private String accessToken;

	public User() {
		this.regTime=new Date(System.currentTimeMillis());
		this.lastVisitTime=new Date(0L);
	}
	
	public Date getRegTime() {
		return regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	public Date getLastVisitTime() {
		return lastVisitTime;
	}

	public void setLastVisitTime(Date lastVisitTime) {
		this.lastVisitTime = lastVisitTime;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "User [uid=" + uid + ", name=" + name + ", regTime=" + regTime
				+ ", lastVisitTime=" + lastVisitTime + ", accessToken="
				+ accessToken + "]";
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
